package java56_4;

public class Student {
	int age;
	String name;
	int javaScore;

	public Student() {
		name = "未知";
	}

	// 初始化姓名和age
	public Student(String n, int age) {
		name = n;
		this.age = age;
	}

	// // 初始化姓名和java成绩
	// public Student(String n, int score) {
	// name = n;
	// javaScore = score;
	// }

	public Student(String n, int age, int javaScore) {
		name = n;
		this.age = age;
		this.javaScore = javaScore;
		this.show();// 当前对象的属性和方法
	}

	public void show() {
		System.out.println("我叫" + name + ",今年" + age + "岁,java成绩是" + javaScore);
	}
}
